﻿using FluentNHibernate.Mapping;
using Sebrae.Academico.Trilhas.Dominio.Classes;

namespace Sebrae.Academico.Trilhas.BM.Mapeamentos
{

    public sealed class ProgramaMap : ClassMap<Programa>
    {
        /// <summary>
        /// Construtor.
        /// </summary>
        public ProgramaMap()
        {
            Table("TB_PROGRAMA");
            LazyLoad();
            Id(x => x.ID).GeneratedBy.Identity().Column("ID_PROGRAMA");
            HasMany(x => x.ListaMatriculaPrograma).KeyColumn("ID_PROGRAMA");
        }
    }
}


